package com.example.librarymanagement.util;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * 枚举常量类
 *
 * @author wx
 */
@AllArgsConstructor
@NoArgsConstructor
public enum EnumConst {
    /**
     *
     */
    BOOK(0, "图书"),
    PERIODICAL(1, "期刊"),
    BORROW_RECORD_STATE_NOT_RETURN(0, "未归还"),
    BORROW_RECORD_STATE_RETURN(1, "已归还"),
    STATE_AVAILABLE(1, "可用"),
    STATE_DISABLE(2, "禁用"),
    STATE_DELETE(3, "删除");

    private Integer code;
    private String state;

    public Integer getCode() {
        return code;
    }

    public String getState() {
        return state;
    }
}
